package com.freshcity.upload.ui
{
	import com.freshcity.upload.CutView;
	
	import flash.display.Sprite;
	
	public class CutBox extends Sprite
	{
		public function CutBox(arg1:Number=110, arg2:Number=135)
		{
			super();
			this.init(arg1, arg2);
			return;
		}
		
		public function init(arg1:Number, arg2:Number):void
		{
			this._w = arg1;
			this._h = arg2;
			this.maskArea = new flash.display.Sprite();
			this.cutArea = new flash.display.Sprite();
			this.flag = new Flag();
			this.maskArea.graphics.clear();
			this.maskArea.graphics.beginFill(0, 0);
			this.maskArea.graphics.drawRect(0, 0, this._w, this._h);
			this.maskArea.graphics.endFill();
			this.cutArea.graphics.clear();
			this.cutArea.graphics.beginFill(0, 0);
			this.cutArea.graphics.drawRect(0, 0, this._w, this._h);
			this.cutArea.graphics.endFill();
			this.flag.x = this._w;
			this.flag.y = this._h;
			addChild(this.maskArea);
			addChild(this.cutArea);
			addChild(this.flag);
			return;
		}
		
		public function get w():Number
		{
			return this._w;
		}
		
		public function get h():Number
		{
			return this._h;
		}
		
		private var swfStage:flash.display.Stage;
		
		private var _w:Number;
		
		private var _h:Number;
		
		public var cutArea:flash.display.Sprite;
		
		public var maskArea:flash.display.Sprite;
		
		public var flag:Flag;
		
		public var flagVY:Number;
		
		public var flagVX:Number;
		
		public var flagCurX:Number;
		
		public var flagCurY:Number;
		
		public var _cutView:CutView;
	}
}